import { request } from './request'

// post请求示例， 默认是get请求
// export const postData = (data) => request({
// 	url: 'getname',
//  method: 'post',
// 	data
// })
// get请求
// export const getParams = (params) => request({
// 	url: 'getParams',
// 	params
// })

// 获取常发拥堵路段基础信息或列表
export const getManyRidBasicsInfo = (params) => request({
	url: 'road/getManyRidBasicsInfo',
	params
})

// 获取多路段的指标
export const getManyRidIndex = (params) => request({
	url: 'road/getManyRidIndex',
	params
})

// 获取路段的诊断信息
export const getSingleRidDiagInfo = (params) => request({
	url: 'road/getSingleRidDiagInfo',
	params
})

// 获取路口的诊断信息
export const getSingleCrossDiagInfo = (params) => request({
	url: 'road/getSingleCrossDiagInfo',
	params
})

// 获取单个路段的指标
export const getSingleRidDiagIndexInfo = (params) => request({
	url: 'road/getSingleRidDiagIndexInfo',
	params
})

// 获取单个路口的指标
export const getSingleCrossDiagIndexInfo = (params) => request({
	url: 'road/getSingleCrossDiagIndexInfo',
	params
})

// 获取区域的列表
export const getAreaList = (params) => request({
	url: 'area/getAreaList',
	params
})

// 获取常发拥堵的列表
export const getJammedRidList = (params) => request({
	url: 'road/getJammedRidList',
	params
})

// 获取路口的列表
export const getCrossList = (params) => request({
	url: 'cross/getCrossList',
	params
})

// 获取下拉框的列表
export const getAreaType = (params) => request({
	url: 'home/getAreaType',
	params
})

// 获取全路网及日月的列表
export const getjamParam = (params) => request({
	url: 'tfcdline/getjamParam',
	params
})

// 获取雷达图数据
export const getleidaDate = (params) => request({
	url: 'tfcdline/getleidaDate',
	params
})

// 获取渠化图数据
export const getCrossCanalPicture = (params) => request({
	url: 'odDevice/getCrossCanalPicture',
	params
})

// 获取常发所有地图上图标
export const getRidHealthIndex = (params) => request({
	url: 'rid/getRidHealthIndex',
	params
})

// 获取路段所有地图上图标
export const getRoadHealthIndex = (params) => request({
	url: 'road/getRoadHealthIndex',
	params
})

// 获取路口所有地图上图标
export const getCrossHealthIndex = (params) => request({
	url: 'cross/getCrossHealthIndex',
	params
})

// 获取热力图点与面
export const getPoiListByAoiIds = (params) => request({
	url: 'aoi/rid/getPoiListByAoiIds',
	params
})

// 获取热力图点
export const getPoiListByPoiIds = (params) => request({
	url: 'aoi/rid/getPoiListByPoiIds',
	params
})

// 获取健康指数值
export const getHealthIndex = (params) => request({
	url: 'tfcdline/getHealthIndex',
	params
})

// 获取折线图
export const getRidOdFlow = (params) => request({
	url: 'aoi/rid/getRidOdFlow',
	params
})

// 获取出行量指向
export const getAreaListByRid = (params) => request({
	url: 'travelVolume/getAreaListByRid',
	params
})

// 获取延时指数列表
export const getDelayListByTfcdlineId = (params) => request({
	url: 'travelVolume/getDelayListByTfcdlineId',
	params
})

// 获取poi信息
export const getPoiLineMessage = (params) => request({
	url: 'poiStop/getPoiLineMessage',
	params
})


// 路口获取冲突点
export const getConflictTurnList = (params) => request({
	url: 'cross/cft/getConflictTurnList',
	params
})

// 获取路口冲突
export const getCrossDirectConflict = (params) => request({
	url: 'cross/getCrossDirectConflict',
	params
})

// 获取路段AoiOd数据
export const gettfcdlineAoiOdMaxCntList = (params) => request({
	url: 'tcfdline/aoiod/gettfcdlineAoiOdMaxCntList',
	params
})

// 获取进出口车道list
export const getridwktlist = (params) => request({
	url: 'home/getridwktlist',
	params
})
// 获取进出口车道list
export const gettfcdlineSpeedSubList = (params) => request({
	url: 'tcfdline/aoiod/gettfcdlineSpeedSubList',
	params
})

// 获取路段某路口风险溢出系数
export const getyichudiag = (params) => request({
	url: 'home/getyichudiag',
	params
})

// 排队长度获取相关路口信息
export const getCrosssWktByRid = (params) => request({
	url: 'home/getCrosssWktByRid',
	params
})

// 获取路口位阶差车道信息查询接口
export const getOrderDifference = (params) => request({
	url: 'cross/getOrderDifference',
	params
})

// 获取路口位阶差查询接口
export const getMaxDiff = (params) => request({
	url: 'inter/getMaxDiff',
	params
})

// 获取摄像头
export const getMedia= (params) => request({
	url: 'http://data-process.zlzx.hzsjtj.com/hzsjtysj/yun_power/getMedia',
	params
})

// 获取路口服务水平
export const peakIndexTfcunitSaturation= (data) => request({
	// url: 'http://data-process.zlzx.hzsjtj.com/hzsjtysj/yun_power/peakIndexTfcunitSaturation',
	// url: 'http://172.18.91.192:8099/hzsjtysj/yun_power/peakIndexSaturation',
	url: 'http://172.18.91.192:8099/hzsjtysj/yun_power/peakIndexTfcunitSaturation',
	method: 'post',
	data
})

// 获取路段流量
export const ywdrwll= (params) => request({
	// url: 'http://data-process.zlzx.hzsjtj.com/hzsjtysj/yun_power/ywdrwll_zw',
	url: 'http://ali-screen.zlzx.hzsjtj.com/hzsjtysj/yun_power/ywdrwll_zw',
	params
})

// 获取路口服务水平
export const getCrossSevelLevel = (params) => request({
	url: 'http://172.18.91.192:8099/hzsjtysj/yun_power/api_17b0133d44669697',
	params
})

// 获取拥堵延时指数和平均车速
export const getRoadINdexPeriodByMonth= (data) => request({
	// url: 'http://data-process.zlzx.hzsjtj.com/hzsjtysj/yun_power/getLastMonthTrafficJamAndMapFix',
	url: 'http://172.18.91.192:8099/hzsjtysj/yun_power/getRoadINdexPeriodByMonth',
	method: 'post',
	data
})

// 获取快速路列表
export const getFastTrackList= (params) => request({
	url: 'road/getFastTrackList',
	params
})

// 获取快速路列表
export const getTzyExpOutFtridRelList= (params) => request({
	url: 'exp/out/getTzyExpOutFtridRelList',
	params
})

// 获取快速路列表
export const getTzyExpInFtridRelList= (params) => request({
	url: 'exp/out/getTzyExpInFtridRelList',
	params
})

// 获取快速路列表
export const getFastTrackBasicInfo= (params) => request({
	url: 'road/getFastTrackBasicInfo',
	params
})

// 获取快速路列表
export const getFastPeakDataInfo= (params) => request({
	url: 'road/getFastPeakDataInfo',
	params
})

// 获取快速路列表
export const getFastDiagIndexInfo= (params) => request({
	url: '/road/getFastDiagIndexInfo',
	params
})

// 获取匝道
export const getToeList = (params) => request({
	url: 'travelVolume/getToeList',
	params
})

// 获取od列表
export const getOdBytfcdlineId = (params) => request({
	url: 'travelVolume/getOdBytfcdlineId',
	params
})

// 获取快速路出入口间距
export const getFastTrackEntryExitCausalRendering = (params) => request({
	url: 'road/getFastTrackEntryExitCausalRendering',
	params
})

// 获取快速路od范围
export const getfastBusOD = (params) => request({
	url: 'home/getfastBusOD',
	params
})

// 获取路口poi
export const getPoiListByInterId = (params) => request({
	url: 'aoi/rid/getPoiListByInterId',
	params
})

// 获取路口poi
export const getFastToeSpeed = (params) => request({
	url: 'travelVolume/getFastToeSpeed',
	params
})
// 信号控制交叉口间距
export const getCrossDisInfo = (params) => request({
	url: 'signinter/dis/getCrossDisInfo',
	params
})

// 路段失衡
export const getTfcdlineSh = (params) => request({
	url: 'signinter/dis/getTfcdlineSh',
	params
})

// 致因综合描述
export const getTfcdlineJamCause = (params) => request({
	url: 'showIndexLzy/getTfcdlineJamCause',
	params
})

// 道路拾取
export const getTfcdlineRelateRid = (params) => request({
	url: 'travelVolume/getTfcdlineRelateRid',
	params
})

// 快速路致因综合描述
export const getTfcdlineJamCauseFast = (params) => request({
	url: 'showIndexLzy/getTfcdlineJamCauseFast',
	params
})

// 路口致因综合描述
export const getTfcdlineJamCauseCross = (params) => request({
	url: 'showIndexLzy/getTfcdlineJamCauseCross',
	params
})

// 区域中区列表
export const getMinArea = (params) => request({
	url: 'showIndexLzy/getMinArea',
	params
})

// 区域列表
export const getAreaListById = (params) => request({
	url: 'area/getAreaListById',
	params
})

// 区域数据
export const getIdsBytfcunitId = (params) => request({
	url: 'area/getIdsBytfcunitId',
	params
})

// 区域柱状图
export const getZYtypeNumber = (params) => request({
	url: 'area/getZYtypeNumber',
	params
})

// 区域自定义区域
export const addAreaSet = (data) => request({
	url: 'area/addAreaSet',
	method: 'post',
	data
})

// 区域自定义区域
export const getAreaIndexByRate = (params) => request({
	url: 'travelVolume/getAreaIndexByRate',
	params
})

// 区域五个按钮
export const getAreaSystemIndex = (params) => request({
	url: 'area/getAreaSystemIndex',
	params
})

// 区域各个里程占比
export const getAreaColumnarIndex = (params) => request({
	url: 'area/getAreaColumnarIndex',
	params
})

// 区域各个里程占比
export const getSurroundingPoints = (params) => request({
	url: 'area/getSurroundingPoints',
	params
})

// 原平顺性改为上下游汇入汇出干扰
export const getDataTide = (params) => request({
	url: 'showIndexLzy/getDataTide',
	params
})

// 路口不合理致因
export const getConflictLanes = (params) => request({
	url: 'cross/getConflictLanes',
	params
})

// 致因表-公交站点
export const getBusDiag = (params) => request({
	url: 'stopBus/getBusDiag',
	params
})

// 致因表-路口流量
export const getCrossTrafficOrganizationChars = (params) => request({
	url: 'cross/getCrossTrafficOrganizationChars',
	params
})

// 致因表-交通需求
export const getTrafficHaveFlow = (params) => request({
	url: 'stopBus/getTrafficHaveFlow',
	params
})

// 区域体检报告-报告指标
export const getTfcunitReport = (params) => request({
	url: 'travelVolume/getTfcunitReport',
	params
})

// 路段-吸发量
export const getPoiInOutList = (params) => request({
	url: 'aoi/rid/getPoiInOutList',
	params
})

// 区域-路网密度
export const getAreaIndex = (params) => request({
	url: 'travelVolume/getAreaIndex',
	params
})

// 特征-出行习惯
export const getTransitOdFlow = (params) => request({
	url: 'stopBus/getTransitOdFlow',
	params
})

// 特征-远端吸引点
export const getYDAoiList = (params) => request({
	url: 'aoi/rid/getYDAoiList',
	params
})

// 特征-平均流量
export const getTfcdlineAvgSpeedHours = (params) => request({
	url: 'road/getTfcdlineAvgSpeedHours',
	params
})

// 立交
export const getFlyoverList = (params) => request({
	url: 'area/getFlyoverList',
	params
})

// 内网特征-平均车速
export const getBigScreenRoadSpeedByHourV2 = (data) => request({
	url: 'http://ali-screen.zlzx.hzsjtj.com/hzsjtysj/yun_power/getBigScreenRoadSpeedByHourV2',
	method: 'post',
	data
})
// 内网特征-流量
export const getJtllZxt = (data) => request({
	url: 'http://ali-screen.zlzx.hzsjtj.com/hzsjtysj/yun_power/getJtllZxt',
	method: 'post',
	data
})

// 路段特征- type为52
export const getUDSpeedSub = (params) => request({
	url: 'aoi/rid/getUDSpeedSub',
	params
})

// 快速路特征- type为202
export const getInLen = (params) => request({
	url: 'aoi/rid/getInLen',
	params
})

// 快速路特征- type为203
export const getOutLen = (params) => request({
	url: 'aoi/rid/getOutLen',
	params
})

// 快速路特征- type为301
export const getTraitInfo = (params) => request({
	url: 'travelVolume/getTraitInfo',
	params
})

// 路段和路口特征- type为64， 9
export const getAnalysisOfExitChars = (params) => request({
	url: 'road/getAnalysisOfExitChars',
	params
})

// 快速路特征- type为205
export const getInOutLaneCnt = (params) => request({
	url: 'aoi/rid/getInOutLaneCnt',
	params
})

// 路口特征- type为205
export const getDownCrossDis = (params) => request({
	url: 'aoi/rid/getDownCrossDis',
	params
})

// 快速路特征- type为201
export const getfastCrossSpacingChars = (params) => request({
	url: 'road/getfastCrossSpacingChars',
	params
})

// 特征- 阈值
export const getCapacity = (params) => request({
	url: 'showIndexLzy/getCapacity',
	params
})

// 路口特征- type为7
export const getOverflowIndex = (params) => request({
	url: 'stopBus/getOverflowIndex',
	params
})

// 快速路特征- type为401
export const getRideSpeed = (params) => request({
	url: 'showIndexLzy/getRideSpeed',
	params
})

// 特征- 对象流量
export const getOpositeTfcdlineInfo = (params) => request({
	url: 'road/getOpositeTfcdlineInfo',
	params
})

// 立交综合描述
export const getGraderesult = (params) => request({
	url: 'travelVolume/getGraderesult',
	params
})

// 热力图
export const getDeviceVolume = (params) => request({
	url: 'odDevice/getDeviceVolume',
	params
})
// OD
export const getDeviceGisData = (params) => request({
	url: 'odDevice/getDeviceGisData',
	params
})

// OD
export const getAreaOd = (params) => request({
	url: 'odDevice/getAreaOd',
	params
})

// OD
export const getAreaInfo = (params) => request({
	url: 'odDevice/getAreaInfo',
	params
})
// OD箭头
export const getAreaOdLineWkt = (params) => request({
	url: 'odDevice/getAreaOdLineWkt',
	params
})
//点
export const getRidAndPointVolume = (params) => request({
	url: 'odDevice/getRidAndPointVolume',
	params
})


export const getRidList = (params) => request({
	url: 'odDevice/getRidList',
	params
})


export const getKkVolume = (params) => request({
	url: 'odDevice/getKkVolume',
	params
})

export const getInterIdList = (params) => request({
	url: 'odDevice/getInterIdList',
	params
})


export const getCrossWkt = (params) => request({
	url: 'odDevice/getCrossWkt',
	params
})


export const getTurnFlow = (params) => request({
	url: 'odDevice/getTurnFlow',
	params
})

export const getInterInfoByType = (params) => request({
	url: 'odDevice/getInterInfoByType',
	params
})


export const getVedioByType = (params) => request({
	url: 'odDevice/getVedioByType',
	params
})

export const getPoint = (params) => request({
	url: 'odDevice/getPoint',
	params
})



